package com.example.redistest.mapper;

import com.example.redistest.domain.tbUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper //表示这是mybatis的mapper类
@Repository //表示这是dao层
public interface UserMapper {
    //根据id查询用户
    tbUser getUserById(int id);

    int addUser(tbUser user);

    int updateUser(tbUser user);

    int deleteUser(int id);
}
